package com.guli.secKill.feign;
/*
 * @Author 罗俊
 * @date 2020/12/3 - 3:37 下午
 *
 */

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;
@FeignClient(name = "ware-service")
public interface WareFeignClient {

    @ApiOperation("根据skuId，来批量查询库存，skuId对应的库存存放在Map的value位置")
    @PostMapping("wms/waresku/getStockBySkuIdArray")
    public Map<Long,Integer> getStockBySkuIdArray(@RequestBody List<Long> skuIds);
}
